Symlink libreaddir-rand.so into tests directory
authorSimon McVittie <smcv@debian.org>
Mon, 28 Mar 2016 12:46:23 +0000 (13:46 +0100)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Thu, 31 Mar 2016 14:22:06 +0000 (14:22 +0000)
This means it can be LD_PRELOADed during build-time testing.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

.gitignore
Makefile-decls.am
Makefile-tests.am

index d241cab65b340152f9db30671d227181154afc53..f37ca48f950ed7ce292d385644cdcd501025d030 100644 (file)
@@ -70,6 +70,7 @@ _build
 /test-remote-add.test
 /test-setuid.test
 /test-xattrs.test
+/tests/libreaddir-rand.so
 test-varint
 test*.test
 *.trs
index a5c9d5033fec13308f6cd3f21c7cccd2f4d438fb..eefffd649258cf162c26cd631024b1ee729224d1 100644 (file)
@@ -49,3 +49,6 @@ GITIGNOREFILES =
 # This is a special facility to chain together hooks easily
 INSTALL_DATA_HOOKS =
 install-data-hook: $(INSTALL_DATA_HOOKS)
+
+ALL_LOCAL_RULES =
+all-local: $(ALL_LOCAL_RULES)
index ce562265ca03a07b4e9e9be7733a1c7a8a0bca97..c92b0be188d6b9ce6f8981f2f0e35eab3ce01d53 100644 (file)
@@ -216,6 +216,10 @@ EXTRA_DIST += \
        tests/gpg-verify-data/trustdb.gpg \
        tests/gpg-verify-data/gpg.conf
 
+tests-libreaddir-rand-so-symlink:
+       ln -fns ../.libs/libreaddir-rand.so tests
+ALL_LOCAL_RULES += tests-libreaddir-rand-so-symlink
+
 # Unfortunately the glib test data APIs don't actually handle
 # non-recursive Automake, so we change our code to canonically look
 # for tests/ which is just a symlink when installed.